package com.yugao.fintech.antelope.system.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.yugao.fintech.antelope.base.model.BasePO;
import com.yugao.fintech.framework.desensitization.annotations.FieldBind;
import lombok.Getter;
import lombok.Setter;

/**
 * 菜单权限规则表
 */
@TableName("sys_menu_data_rule")
@Getter
@Setter
public class SysMenuRule extends BasePO {
	private static final long serialVersionUID = 1L;

	public static LambdaQueryWrapper<SysMenuRule> lqw() {
		return Wrappers.lambdaQuery();
	}
	
	/**
	 * id
	 */
	@TableId
	private Long id;
	
	/**
	 * 对应的菜单id
	 */
	private Long menuId;

	/**
	 * 规则编码, 用于作为唯一标识赛选数据
	 */
	@FieldBind(type = "data_rule_code", target = "ruleCodeText")
	private String ruleCode;

	@TableField(exist = false)
	private String ruleCodeText;
	
	/**
	 * 规则名称
	 */
	private String ruleName;
	
	/**
	 * 字段
	 */
	private String ruleColumn;
	
	/**
	 * 条件
	 */
	private String ruleConditions;
	
	/**
	 * 规则值
	 */
	private String ruleValue;
	
	/**
	 * 状态值 1有效 0无效
	 */
	private String status;
}
